/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>

using namespace std;
int arr[20]={0};
int main_84()
{
    int n,x,cnt=0;
    scanf("%d",&n);
    for (int i=0;i<n ;++i )
    {
        scanf("%d",&arr[i]);
    }
    scanf("%d",&x);
    for (int i=0;i<n ;++i )
    {
        if (arr[i]==x)
        {
            ++cnt;
        }
    }
    printf("%d\n",cnt);
	return 0;
}
